using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "New PlayerData", menuName = "Data/PlayerData")]
public class PlayerDataSO : ScriptableObject
{
    // 保存
    [field: SerializeField] public int PlayerLv{get;set;}
    [field: SerializeField] public int PlayerCoins{get;set;}
    [field: SerializeField] public int PlayerCurrentExp{get;set;}
    
    [field: SerializeField] public int PlayerMaxHealth{get; private set;}
    
    [field: SerializeField] public int PlayerMaxExp{get; private set;}

    public void Init(int lv,int coins,int currentExp)
    {
        PlayerLv = lv;
        PlayerCoins = coins;
        PlayerCurrentExp = currentExp;
    }
}
